package com.dongjiantong.user.enums;

/**
 * 人员枚举
 * Created by cao on 2017/11/13.
 */
public enum UserEnum {

    USERTYPE_BOSS(1, "运维人员"),
    USERTYPE_ORG(2, "政府人员"),
    USERTYPE_CUS(3, "养殖场人员"),
    USERTYPE_BUT(4, "屠宰场人员"),
    USERTYPE_INS(5, "保险人员"),

    LOGIN_DISABLE(0, "启用"),
    LOGIN_ENABLE(1, "禁用"),

    Gender_MALE(1, "男"),
    Gender_FEMALE(2, "女"),
    Gender_UNKOWN(0, "未知"),

    LOGIN_APP(1, "APP登录"),
    LOGIN_WEB(2, "Web登录"),
    LOGIN_BOSS(3, "Boss登录"),

    ismaster_true(1, "管理员"),

    ismaster_false(-1, "不是管理员");
    private final Integer code;
    private final String name;

    private UserEnum(Integer code, String name) {

        this.code = code;
        this.name = name;

    }

    public Integer getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }
}
